<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="support.*, java.util.*, java.sql.*, javax.sql.*" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> 
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Application review</title>
</head>
<body>
 Application status: <bean:write name="showInfoForm" property="status" />


<!-- Display data collected from previous pages. -->
<b>First Name:</b> <bean:write name="showInfoForm" property="first" />
<b>Middle Initial:</b> <bean:write name="showInfoForm" property="middle" />
<b>Last Name:</b>  <bean:write name="showInfoForm" property="last" />
<p>
<b>Country of Citizenship:</b> <bean:write name="showInfoForm" property="citizen" /> <p>
<b>Country of Residence:</b> <bean:write name="showInfoForm" property="residence"/> <p>
<b>Country of Residency:</b> <bean:write name="showInfoForm" property="residency"/> <p>

<b>Address:</b><p>

	<logic:present name="showInfoForm" property="street">
			Street: <bean:write name="showInfoForm" property="street" /> 
	</logic:present>
	<logic:present name="showInfoForm" property="city">
			City: <bean:write name="showInfoForm" property="city" />
	</logic:present>	
	<logic:present name="showInfoForm" property="lstate">
		<logic:notEqual  name="showInfoForm" property="lstate" value="">
			State: <bean:write name="showInfoForm" property="lstate" />
		</logic:notEqual>
	</logic:present>
	<logic:present name="showInfoForm" property="zip">
		<logic:notEqual  name="showInfoForm" property="zip" value="">
			Zip Code:<bean:write name="showInfoForm" property="zip" />
		</logic:notEqual>
	</logic:present>
	
	<b>Phone Number:</b> (<bean:write name="showInfoForm" property="areaCode" />) 
	                     (<bean:write name="showInfoForm" property="pnumber" />) 

  
<logic:iterate id="degreeId" name="showInfoForm" property="degrees" >
==========================================================
Location:<bean:write name="degreeId" property="stuState"/>
School: <bean:write name="degreeId" property="school"/>
Discipline of degree: <bean:write name="degreeId" property="discp"/>
						 <bean:write name="degreeId" property="title"/>
Degree earned in: <bean:write name="degreeId" property="dmonth"/>
					 <bean:write name="degreeId" property="dyear"/>
GPA: <bean:write name="degreeId" property="gpa"/>
Transcript: <bean:write name="degreeId" property="fileName"/>
</logic:iterate>
Specialization: <bean:write name="showInfoForm" property="specialization" /> <p>
<!-- End of displaying collected information. -->
<p>
<logic:iterate id="reviewId" name="showInfoForm" property="rvcomments" >
Reviews:
<p>Grade:<bean:write name="reviewId" property="grade"/></p>
<p>comment:</p><bean:write name="reviewId" property="comments"/>
</logic:iterate>

<html:form action="/gradeApp" enctype="multipart/form-data">
<!-- Drop down menu of the three titles (BS, MS, PhD) -->
Select a grade:
<html:select name = "showInfoForm" property="grade" >
	<html:option value='0'>0</html:option>
	<html:option value='1'>1</html:option>
	<html:option value='2'>2</html:option>	
	<html:option value='3'>3</html:option>	
	<html:option value='4'>4</html:option>	
</html:select>
<p>
Enter Comment:<p> <html:textarea name = "showInfoForm" property="comments" rows="5" cols="5" />
<p><html:submit value="Submit"/>
</html:form>


</body>
</html>